package lincen.javame.light.ui.geometric;

/**
 * ��С
 * @author ���
 */
class Dimension {
	
	/**
	 * ���
	 */
	private int width;
	
	/**
	 * �߶�
	 */
	private int height;

	/**
	 * ��ÿ��
	 * @return
	 */
	public int getWidth() {
		return width;
	}

	/**
	 * ���ÿ��
	 * @param width
	 */
	public void setWidth(int width) {
		if(width<0){
			this.width = 0;
		}
		this.width = width;
	}

	/**
	 * ��ø߶�
	 * @return
	 */
	public int getHeight() {
		return height;
	}

	/**
	 * ���ø߶�
	 * @param height
	 */
	public void setHeight(int height) {
		if(height<0){
			this.height = 0;
		}
		this.height = height;
	}
	
	
}
